package cn.com.xuhx.mapper;

import cn.com.xuhx.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {

    //自定义分页必须把分页参数写在最前面，并且参数名叫page
    Page<User> selectPageDefine(@Param("page") Page<User> page,@Param("startAge") Integer startAge);
}
